package com.zzy.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zzy.system.domain.OutStockSheetOrderDetail;
import com.zzy.system.mapper.OutStockSheetOrderDetailMapper;
import com.zzy.system.service.IOutStockSheetOrderDetailService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OutStockSheetOrderDetailServiceImpl extends ServiceImpl<OutStockSheetOrderDetailMapper, OutStockSheetOrderDetail> implements IOutStockSheetOrderDetailService {
    private static final Logger log = LoggerFactory.getLogger(OutStockSheetOrderDetailServiceImpl.class);


    @Override
    public Integer saveOutStockSheetOrderDetails(OutStockSheetOrderDetail outStockSheetOrderDetailList) {
        if(outStockSheetOrderDetailList != null){
            baseMapper.insert(outStockSheetOrderDetailList);
            return outStockSheetOrderDetailList.getOutStockSheetOrderDetailId();
        }
        return 0;

    }
}